package com.xunyun.kotlinwc.login.api

import com.xunyun.kotlinwc.login.model.UserBean
import com.xunyun.kotlinwc.network.response.ResponseData
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @author gl
 * @date 2021/9/8
 * @desc
 */
interface LoginService {
    @POST("user/login")
    @FormUrlEncoded
    fun login(
        @Field("username") username: String,
        @Field("password") password: String
    ): Observable<ResponseData<UserBean>>


}